home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 272_01 / fillch.doc < prev    next >
Text File  |  1986-09-23  |  856b  |  39 lines

  1.  
  2.  
  3.        NAME
  4.                fillch -- fill a string with a character
  5.  
  6.        SYNOPSIS
  7.                void fillch(dest, chr, qty);
  8.                char *dest      destination string
  9.                char chr        character to place
  10.                int qty         number to place
  11.  
  12.        DESCRIPTION
  13.        This function fills string "dest" with "qty" number of characters
  14.        "chr".  The destination string must be large enough to hold the
  15.        indicated quantity, as no check is made. In addition, a NULL
  16.        is not placed after the last character.
  17.  
  18.        EXAMPLE
  19.                char string[20];
  20.                fillch(string, 'A', 19);
  21.                string[20] = NULL;
  22.  
  23.         makes a usable string of 19 "A" characters.
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.        This function is found in SMDLx.LIB for the Datalight Compiler.
  39.